package com.etiantian.controllor;

import com.etiantian.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/")
public class HelloController {

   @Autowired
   private GradeService gradeService;


	@RequestMapping(method = RequestMethod.GET)
	public String printWelcome(ModelMap model) {


        gradeService.testTranscation();

        model.addAttribute("message", "Hello world!");
		return "hello";
	}
}